package com.example.elm.Account

import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper

private val CREATE_ACCOUNT = " create table Account(" +
        "telephone_number text primary key" +
        ", password text" +
        ", name text" +
        ", people_name text" +
        ", head_image text" +
        ", introduction text)"

class AccountDatabase(val context: Context, val name: String, val version: Int)
    :SQLiteOpenHelper(context, name, null, version){
    override fun onCreate(db: SQLiteDatabase?) {
        db?.execSQL(CREATE_ACCOUNT)
    }

    override fun onUpgrade(db: SQLiteDatabase?, p1: Int, p2: Int) {
    }
}